package com.treeste;

import java.util.TreeSet;

public class TestStudent {
    public static void main(String[] args) {
        TreeSet<Student> set = new TreeSet<>();
        Student s1 = new Student("xiaohua", 80, 80, 89);
        Student s2 = new Student("zhaohua", 78, 87, 96);
        Student s3 = new Student("liusan", 86, 80, 68);
        Student s4 = new Student("chenshikai", 75, 89, 94);
        set.add(s1);
        set.add(s2);
        set.add(s3);
        set.add(s4);

        for (Student s : set) {
            System.out.println(s);
        }
    }
}
